package com.yao.service.impl;

import com.yao.entity.Apple;
import com.yao.service.ApplePredicate;

public class AppleGreenColorPredicate implements ApplePredicate {

	/**
	 * 选出绿颜色的苹果
	 */
	@Override
	public boolean test(Apple apple) {
		return "green".equalsIgnoreCase(apple.getColor());
	}

}
